<% include ../header %>
<form method="POST" class="form-horizontal well">
  <div class="control-group">
    <label class="control-label" for="name">名称</label>
    <div class="controls">
      <input type="text" name="name" id="name" value="<%=shop.name%>">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="address">地址</label>
    <div class="controls">
      <input type="text" name="address" id="address" value="<%=shop.address%>">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="tel">电话</label>
    <div class="controls">
      <input type="text" name="tel" id="tel" value="<%=shop.tel%>">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="tel">分类</label>
    <div class="controls">
      <textarea name="categories" id="categories" class="span5" rows="2"><%=shop.categories%></textarea>
      <div>
        <b>格式：</b>数字编号#分类名|数字编号#分类名<br/>
        <b>例如：</b>1#商务套餐|2#营养套餐|3#其它
      </div>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="tel">样式</label>
    <div class="controls">
      <textarea name="css" id="css" class="span7" rows="4"><%=shop.css%></textarea>
      <div>
        <p><b>一行两列：</b>.food-list li {width: 269px;} .food-list li:nth-child(even) {margin-right: 0; float:right;}</p>
        <p><b>一行三列：</b>.food-list li:nth-child(3n) {margin-right: 0;} </p>
      </div>
    </div>
  </div>
  <div class="control-group">
    <input type="hidden" name="id" id="id" value="<%=shop._id%>">
  </div>
  <div class="control-group">
    <div class="controls ">
      <button class="btn btn-primary" type="submit">编辑店铺</button>
    </div>
  </div>
</form>
<% include ../footer %>